package cn.com.xjnt.vas.manage.repository;

import java.util.List;

import javax.persistence.QueryHint;

import org.springframework.data.jpa.repository.QueryHints;

import com.frameworks.core.repository.BaseRepository;

import cn.com.xjnt.vas.manage.domain.entity.Organization;

public interface OrganizationRepository extends BaseRepository<Organization, Long> {
	
	@QueryHints(value={
			@QueryHint(name="org.hibernate.cacheable",value="true"),
			@QueryHint(name="org.hibernate.cacheRegion",value="SystemCache")
		}
	)
	List<Organization> findByParentId(Long parentId);
	
}
